<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang='en'>
<head>
	<title>search</title>
	<link rel='stylesheet' type='text/css' media='screen' href='/static/css/default.css'>
</head>
<body>

<div class='Top'>
	<div class='TopMain'>	
		<h3>Welcome to my blog</h3>
			<div class='Margins'>
			{% if error %}
				<p class='niche'>Did not find a relevant article or you enter a null character.</p>
			{% endif %}
				<form action = '/query/' method = 'get'>
				<input type='text' name='query'>
				<input type="submit" value='Query'>
				</form>
			</div>
	</div>
</div>
<!--top end-->

<body>
	<h1>查询结果</h1>
	{% for i in query_results %}
	<ul><hr>
	<li><p><a href='/log_content/{{i.id}}'><h2>{{i.title}}</h2></a></p>
	<fieldset>
	<legend>日志内容</legend>
	<p>{{i.content}}</p>
	</fieldset>
	</ul><hr>
	{% endfor %}
<br><a href='\'><button>返回</button></a></br>
<body>
</html>